<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style></style>
  </head>
  <body>
    <script>
      function makeColor() {
        var num,
          col = "#",
          args = "0123456789ABCDEF";
        for (var i = 0; i < 6; i++) {
          num = Math.floor(Math.random() * 16);
          col += args[num];
        }
        return col;
      }
      console.log(makeColor());
    </script>
  </body>
</html>
